package com.ruoyi.building.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.building.mapper.BuildingInformationMapper;
import com.ruoyi.building.domain.BuildingInformation;
import com.ruoyi.building.service.IBuildingInformationService;

/**
 * 楼盘信息列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class BuildingInformationServiceImpl implements IBuildingInformationService 
{
    @Autowired
    private BuildingInformationMapper buildingInformationMapper;

    /**
     * 查询楼盘信息列表
     * 
     * @param id 楼盘信息列表主键
     * @return 楼盘信息列表
     */
    @Override
    public BuildingInformation selectBuildingInformationById(Long id)
    {
        return buildingInformationMapper.selectBuildingInformationById(id);
    }

    /**
     * 查询楼盘信息列表列表
     * 
     * @param buildingInformation 楼盘信息列表
     * @return 楼盘信息列表
     */
    @Override
    public List<BuildingInformation> selectBuildingInformationList(BuildingInformation buildingInformation)
    {
        return buildingInformationMapper.selectBuildingInformationList(buildingInformation);
    }

    /**
     * 新增楼盘信息列表
     * 
     * @param buildingInformation 楼盘信息列表
     * @return 结果
     */
    @Override
    public int insertBuildingInformation(BuildingInformation buildingInformation)
    {
        return buildingInformationMapper.insertBuildingInformation(buildingInformation);
    }

    /**
     * 修改楼盘信息列表
     * 
     * @param buildingInformation 楼盘信息列表
     * @return 结果
     */
    @Override
    public int updateBuildingInformation(BuildingInformation buildingInformation)
    {
        return buildingInformationMapper.updateBuildingInformation(buildingInformation);
    }

    /**
     * 批量删除楼盘信息列表
     * 
     * @param ids 需要删除的楼盘信息列表主键
     * @return 结果
     */
    @Override
    public int deleteBuildingInformationByIds(Long[] ids)
    {
        return buildingInformationMapper.deleteBuildingInformationByIds(ids);
    }

    /**
     * 删除楼盘信息列表信息
     * 
     * @param id 楼盘信息列表主键
     * @return 结果
     */
    @Override
    public int deleteBuildingInformationById(Long id)
    {
        return buildingInformationMapper.deleteBuildingInformationById(id);
    }
}
